package ro.isdc.training.jpa.systemuser.domain;

import org.apache.commons.lang.builder.ToStringBuilder;

import ro.isdc.training.jpa.misc.domain.BusinessEntityId;

public class SystemUserId extends BusinessEntityId {
	/**
	 * Generated Serial Version UID
	 */
	private static final long serialVersionUID = 2153268944361594637L;
	
	private String username;

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username the username to set
	 */
	public void setUsername(final String username) {
		this.username = username;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).append("versionNo", this.getVersionNo())
				.append("username", this.username).append("entityId",
						this.getEntityId()).toString();
	}
	
}
